/*
 * @Description: 数字翻盘
 * @Author: LiuYan
 * @Date: 2021-12-28 11:52:15
 * @LastEditTime: 2022-03-25 10:34:59
 * @LastEditors: LiuYan
 * @Reference:
 */
import Vue from 'vue'
import AnimatedNumber from 'animated-number-vue'
Vue.mixin({
  methods: {
    // 用于调用数字翻盘格式化
    formatToPrice(value) {
      return `${parseInt(value)}`
    },
  },
})
Vue.component('AnimatedNumber', AnimatedNumber)
/*
 *
 * @Description: 使用方法 https://github.com/Leocardoso94/animated-number-vue
 * <AnimatedNumber :value="115" :formatValue="formatToPrice"></AnimatedNumber>
 *
 */
